package com.briup.demo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class Category implements Serializable {
    //主键id
    private Integer id;
    private String name;
    private String description;
    private Integer parentId;  //父类别ID
    private Category parent;   //父分类
}
